﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using System.Linq.Expressions;
namespace SaleManagement.Repository.Interfaces
{
   public interface ICustomerRepository:IDisposable
    {
       IQueryable<Customer> All { get; }
       IQueryable<Customer> AllIncluding(params Expression<Func<Customer, object>>[] includeProperties);
       Customer Find(int id);
       void InsertOrUpdate(Customer entity);
        void Delete(int id);
        void Save();
    }
}
